package com.peng.apis;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.peng.result.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cloudalibaba-sentinel-gateway",fallback = PayFeignSentineApiFallBack.class)
@Service
public interface PayFeignSentineApi {

    @GetMapping("/pay/nacos/{id}")
    String getPayInfo(@PathVariable("id") Integer id);

    @GetMapping("/pay/nacos/get/{orderNo}")
    ResultData getPayByOrderNo(@PathVariable("orderNo") String orderNo);

}
